#include "LocationCursorByAddress.h"

namespace dwarf {

LocationCursorByAddress::LocationCursorByAddress(const void *_address)
		: address_(_address) {
}

LocationCursorByAddress::~LocationCursorByAddress() {
}

Location LocationCursorByAddress::fetch(Dwarf_Unsigned _byteSize) {
	const void *address = address_;
	address_ = (const char *) address_ + _byteSize;
	return Location(Location::TYPE_ADDRESS, address, _byteSize);
}

}
